package xpn.business.fund_return.entity.capital_flow_statement;

import org.springframework.data.rest.webmvc.RepositoryRestController;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xpn.platform.common.repository.XpnRepositoryController;

import javax.annotation.Resource;

@RestController
@RepositoryRestController
@RequestMapping("capitalFlowStatement")
public class CapitalFlowStatementController extends XpnRepositoryController<CapitalFlowStatement, Long> {

    @Resource
    private CapitalFlowStatementService capitalFlowStatementService;

    @PostMapping("")
    public CapitalFlowStatement saveCapitalFlowStatement(@RequestBody CapitalFlowStatement capitalFlowStatement) {
        return capitalFlowStatementService.save(capitalFlowStatement);
    }
}
